package com.campus_assistant.service.db1;

import com.campus_assistant.mapper.db1.StudentScoresMapper;
import com.campus_assistant.pojo.vo.StudentScores;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentScoresServiceImpl implements StudentScoresService{
    @Autowired
    private StudentScoresMapper studentScoresMapper;
    @Override
    public List<StudentScores> selectStudentScoresAll() {
        return studentScoresMapper.selectStudentScoresAll();
    }

    @Override
    public List<StudentScores> selectStudentScoreByStudentName(String studentName) {
        return studentScoresMapper.selectStudentScoreByStudentName(studentName);
    }

    @Override
    public List<StudentScores> selectStudentScoreByCourseName(String courseName) {
        return studentScoresMapper.selectStudentScoreByCourseName(courseName);
    }

    @Override
    public List<StudentScores> selectStudentScoreByTeacherName(String teacherName) {
        return studentScoresMapper.selectStudentScoreByTeacherName(teacherName);
    }

    @Override
    public StudentScores selectStudentScoreByStudentNameAndCourseName(String studentName, String courseName) {
        return studentScoresMapper.selectStudentScoreByStudentNameAndCourseName(studentName,courseName);
    }


}
